package cn.getech.data.development.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.getech.data.intelligence.common.utils.PageUtils2;
import cn.getech.data.development.entity.ScheduleTimeEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 定时时间执行
 *
 * @author qiuxinglei
 * @email qiuxinglei@gmail.com
 * @date 2020-09-15 13:51:32
 */
public interface ScheduleTimeService extends IService<ScheduleTimeEntity> {

    PageUtils2<ScheduleTimeEntity> queryPage(Map<String, Object> params);

    List<ScheduleTimeEntity> listByTime(Integer scheduleType, Date begin, Date end);

    Date getCronNextDate(Date currentDate, String cron);

    Date getCronNextDateAll(Date currentDate, String cron, Integer scheduleOrInterval);

    List<Date> cronTabNextDateList(Date currentDate, String cron);

    Date cronTabNextDate(Date currentDate, String cron);

}

